//
//  HomeCollectionViewCell.m
//  TravelFollowYourHeart
//
//  Created by 鲁万玺 on 2017/12/11.
//  Copyright © 2017年 Lwx. All rights reserved.
//

#import "HomeCollectionViewCell.h"

@interface HomeCollectionViewCell()
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UIButton *locationBtn;
@property (weak, nonatomic) IBOutlet UILabel *Price;
@property (strong, nonatomic) NSString * dataId;
@end

@implementation HomeCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModelData:(HomeRMTJModelData *)modelData
{
    _modelData = modelData;
    self.contentLabel.text = modelData.title;
    self.Price.text = [NSString stringWithFormat:@"%@元", modelData.price];
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:modelData.pic]];
    [self.locationBtn setTitle:modelData.address forState:UIControlStateNormal];
    self.dataId = modelData.dataId;
}

@end
